import { Get, JsonController, QueryParam } from "routing-controllers";
import { Inject } from "typedi";
import { LoginLogService } from '../services/LoginLogService';
import Response from "../common/response"
@JsonController("/loginLog")
export default class LoginLogController {
    @Inject()
    loginLogService: LoginLogService

    @Get("/list")
    async getList(@QueryParam('page') page: number, @QueryParam("pageSize") pageSize: number) {
        const result = await this.loginLogService.getLoginLogList({
            pageNum: page,
            pageSize
        })
        return Response.SUCCESS(result)
    }
}